
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Hadoop故障处理 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="Hadoop性能优化.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    Hadoop总结
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="hadoopBase.html">
            
                <a href="hadoopBase.html">
            
                    
                    Hadoop基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="Hadoop性能优化.html">
            
                <a href="Hadoop性能优化.html">
            
                    
                    Hadoop性能优化
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.3" data-path="Hadoop故障处理.html">
            
                <a href="Hadoop故障处理.html">
            
                    
                    Hadoop故障处理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    Flume总结
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../chapter2/FlumeBase.html">
            
                <a href="../chapter2/FlumeBase.html">
            
                    
                    Flume基础
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    Hive总结
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../chapter4/HiveBase.html">
            
                <a href="../chapter4/HiveBase.html">
            
                    
                    Hive基础
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    数仓总结
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../chapter5/数仓基础.html">
            
                <a href="../chapter5/数仓基础.html">
            
                    
                    数仓理论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../chapter5/数仓面试题.html">
            
                <a href="../chapter5/数仓面试题.html">
            
                    
                    题目汇总]
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Hadoop故障处理</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="hadoop-&#x6545;&#x969C;&#x5904;&#x7406;">Hadoop &#x6545;&#x969C;&#x5904;&#x7406;</h1>
<h2 id="hadoop-&#x5B95;&#x673A;">Hadoop &#x5B95;&#x673A;</h2>
<p>&#x9996;&#x5148;&#x627E;&#x539F;&#x56E0;&#xFF0C;&#x4E00;&#x822C;&#x5C31;&#x662F;&#x67E5;&#x65E5;&#x5FD7;&#x3002;</p>
<ol>
<li>&#x5982;&#x679C; MR &#x9020;&#x6210;&#x7CFB;&#x7EDF;&#x5B95;&#x673A;&#xFF0C;&#x6B64;&#x65F6;&#x8981;&#x63A7;&#x5236;Yarn &#x540C;&#x65F6;&#x8FD0;&#x884C;&#x7684;&#x4EFB;&#x52A1;&#x6570;&#xFF0C;&#x548C;&#x6BCF;&#x4E2A;&#x4EFB;&#x52A1;&#x7533;&#x8BF7;&#x7684;&#x6700;&#x5927;&#x5185;&#x5B58;&#x6570;&#xFF0C;&#x8C03;&#x6574;&#x53C2;&#x6570;</li>
<li>&#x5982;&#x679C;&#x5199;&#x5165;&#x6587;&#x4EF6;&#x8FC7;&#x91CF;&#x9020;&#x6210;NameNode&#x5B95;&#x673A;&#xFF0C;&#x90A3;&#x4E48;&#x8C03;&#x9AD8;kafka&#x7684;&#x5B58;&#x50A8;&#x5927;&#x5C0F;&#xFF0C;&#x63A7;&#x5236;kafka&#x5199;&#x5165;HDFS&#x7684;&#x901F;&#x5EA6;&#xFF0C;&#x9AD8;&#x5CF0;&#x671F;&#x7684;&#x65F6;&#x5019;&#x7528;kafka&#x8FDB;&#x884C;&#x7F13;&#x5B58;&#xFF0C;&#x9AD8;&#x5CF0;&#x671F;&#x8FC7;&#x53BB;&#x6570;&#x636E;&#x540C;&#x6B65;&#x4F1A;&#x8DDF;&#x4E0A;&#x3002;</li>
</ol>
<h2 id="hadoop-&#x89E3;&#x51B3;&#x6570;&#x636E;&#x503E;&#x659C;&#x65B9;&#x6CD5;">Hadoop &#x89E3;&#x51B3;&#x6570;&#x636E;&#x503E;&#x659C;&#x65B9;&#x6CD5;</h2>
<p>&#x4EA7;&#x751F;&#x539F;&#x56E0;&#xFF1A;</p>
<p>&#x56E0;&#x4E3A; Key &#x7684;&#x539F;&#x56E0;&#xFF0C;&#x5927;&#x91CF;&#x7684;&#x4EFB;&#x52A1;&#x96C6;&#x4E2D;&#x5230;&#x4E00;&#x4E2A; Reduce &#x4E2D;&#x3002;</p>
<p>&#x600E;&#x4E48;&#x53D1;&#x73B0;&#x6570;&#x636E;&#x503E;&#x659C;&#x7684;&#xFF1A;&#x4E00;&#x4E2A;&#x6216;&#x8005;&#x67D0;&#x51E0;&#x4E2A;&#x4EFB;&#x52A1;&#x6267;&#x884C;&#x65F6;&#x95F4;&#x975E;&#x5E38;&#x957F;&#x6216;&#x8005;&#x4E00;&#x76F4;&#x5361;&#x6B7B;&#x3002;</p>
<p>&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</p>
<p><strong>&#x5F53; key &#x5206;&#x5E03;&#x5728;&#x67D0;&#x51E0;&#x4E2A; Mapper &#x7684;&#x60C5;&#x51B5;&#xFF1B;</strong></p>
<p>&#x63D0;&#x524D;&#x5728; map &#x8FDB;&#x884C; combine&#xFF0C;&#x76F8;&#x5F53;&#x4E8E;&#x63D0;&#x524D;reduce&#xFF0C;&#x51CF;&#x5C11;&#x4F20;&#x8F93;&#x7684;&#x6570;&#x636E;&#x91CF;&#xFF0C;&#x8FD9;&#x79CD;&#x65B9;&#x6848;&#x5728; key &#x5927;&#x91CF;&#x5206;&#x5E03;&#x5728;&#x4E0D;&#x540C;&#x7684; mapper &#x7684;&#x65F6;&#x5019;&#x89E3;&#x51B3;&#x4E0D;&#x4E86;&#x95EE;&#x9898;&#x3002;</p>
<p><strong>&#x5F53; key &#x5206;&#x5E03;&#x5728;&#x591A;&#x4E2A; Mapper &#x7684;&#x60C5;&#x51B5;</strong></p>
<ol>
<li>&#x5C40;&#x90E8;&#x805A;&#x5408; + &#x5168;&#x5C40;&#x805A;&#x5408;&#xFF1A; &#x7B2C;&#x4E00;&#x6B21; MR&#xFF0C;&#x8FDB;&#x884C;&#x5C40;&#x90E8;&#x805A;&#x5408;&#xFF0C;&#x52A0;&#x76D0;&#xFF0C;&#x52A0;&#x4E0A;&#x968F;&#x673A;&#x524D;&#x7F00;&#xFF0C;&#x8FD9;&#x6837;key &#x5C31;&#x4F1A;&#x5206;&#x6563;&#x5230;&#x591A;&#x4E2A;reduce&#xFF0C;&#x7136;&#x540E;&#x5728;&#x7B2C;&#x4E8C;&#x6B21;MR &#x8FDB;&#x884C;&#x5168;&#x5C40;&#x805A;&#x5408;&#xFF0C;&#x53BB;&#x6389;&#x968F;&#x673A;&#x524D;&#x7F00;&#xFF08;&#x6027;&#x80FD;&#x8F83;&#x5DEE;&#xFF09;&#x3002;</li>
<li>&#x589E;&#x52A0;Reducer &#xFF0C;&#x63D0;&#x5347;&#x5E76;&#x884C;&#x5EA6; <code>Jobconf.setNumReduceTasks(Int)</code></li>
<li>&#x5B9E;&#x73B0;&#x81EA;&#x5B9A;&#x4E49;&#x5206;&#x533A;&#xFF0C;&#x6839;&#x636E;&#x6570;&#x636E;&#x5206;&#x5E03;&#x60C5;&#x51B5;&#xFF0C;&#x81EA;&#x5B9A;&#x4E49;&#x6563;&#x5217;&#x51FD;&#x6570;&#xFF0C;&#x5C06; key &#x5747;&#x5300;&#x5206;&#x914D;&#x5230;&#x4E0D;&#x540C; Reducer</li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Hadoop性能优化.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: Hadoop性能优化">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Hadoop故障处理","level":"1.2.3","depth":2,"next":{"title":"Flume总结","level":"1.3","depth":1,"ref":"","articles":[{"title":"Flume基础","level":"1.3.1","depth":2,"path":"chapter2/FlumeBase.md","ref":"chapter2/FlumeBase.md","articles":[]}]},"previous":{"title":"Hadoop性能优化","level":"1.2.2","depth":2,"path":"chapter1/Hadoop性能优化.md","ref":"chapter1/Hadoop性能优化.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"chapter1/Hadoop故障处理.md","mtime":"2021-03-29T03:10:19.038Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-03-30T00:41:16.128Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

